import request from '../utils/request'

export function getTemplate (data) { // 首页模板
	return request(data, "/smallroutine/program/applet_info").then(res => res)
}

export function ProductInfo (data) { // 产品信息
	return request(data, "/smallroutine/program/product_info").then(res => res)
}

export function EvaluateList (data) { // 评价列表
	return request(data, "/smallroutine/program/product_evaluations").then(res => res)
}

export function getAppid (data) { // 获取customer_id
	return request(data, '/api/login/getappid').then(res => res)
}

export function SaveSelect (data) { // 获取店铺列别
	return request(data, '/smallroutine/program/save_select').then(res => res)
}

export function sendPhoneMsg (data) { // 发送验证码
	return request(data, "/smallroutine/reward/send_phone_msg").then(res => res)
}

export function ResetPwd (data) { // 重置密码
	return request(data, "/api/login/reset_password").then(res => res)
}

export function Register (data) { // 注册
	return request(data, "/api/login/app_register").then(res => res)
}

export function Login (data) { // 登录
	return request(data, "/api/login/login").then(res => res)
}

export function groupProduct (data) { // 分类-
	return request(data, '/api/product/group_product').then(res => res)
}

export function Group (data) { // 分类-
	return request(data, '/api/product/group').then(res => res)
}

export function Coupon (data){ //product_detail 优惠券
	return request(data,'/smallroutine/program/coupon').then(res => res)
}
export function getCoupon (data) {
	return request(data, '/smallroutine/program/get_coupon').then(res => res)
}

export function getProActive (data){ // 产品活动 抢购 限购 虚拟 推广奖励 积分
	return request(data,'/smallroutine/Reward/productOpenLabel').then(res => res)
}

export function VideoList (data) {
	return request(data, '/smallroutine/Program/video_list_ye').then(res => res)
}

export function uVideoList (data) {
	return request(data, '/smallroutine/Program/video_list').then(res => res)
}

export function uAtricleList (data) {
	return request(data, '/smallroutine/program/Article_list').then(res => res)
}

export function CollectVideo (data) {
	return request(data, '/smallroutine/program/videoCollect').then(res => res)
}

export function checkeProducts (data) {
	return request(data, '/api/CheckPayType/check_pay_type_between_two_products')
}

export function BagOrderDetail (data) {
	return request(data, "/smallroutine/reward/pake_order_detail").then(res => res)
}